﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FaultDiagnosisSystem.Models.DataModels;

namespace FaultDiagnosisSystem.DAL
{
    public class TrendModel
    {
        internal IList<Models.DataModels.TrendModel> GetAllList()
        {
            using (var context=new TurbineFaultContext())
            {
                return context.TrendModel
                    .OrderBy(m=>m.OrderBy)
                    .ToList();
            }
        }
    }
}